import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        component: () => import('../views/HomePage.vue')
    },
    {
        path: '/about',
        component: () => import('../views/AboutPage.vue')
    },
    {
        path: '/ca-certificate',
        component: () => import('../views/CaCertificate.vue')
    },
    {
        path: '/cloud-db',
        component: () => import('../views/CloudDB.vue')
    },
    {
        path: '/cloud-server',
        component: () => import('../views/CloudServer.vue')
    },
    {
        path: '/cloud-shield',
        component: () => import('../views/CloudShield.vue')
    },
    {
        path: '/contact',
        component: () => import('../views/ContactPage.vue')
    },
    {
        path: '/ddos-ip',
        component: ()=> import('../views/DDosIP.vue')
    },
    {
        path: '/load-balancing',
        component: () => import('../views/LoadBalancing.vue')
    },
    {
        path: '/news',
        component: () => import('../views/NewsPage.vue')
    },
    {
        path: '/web-firewall',
        component: () => import('../views/WebFireWall.vue')
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
 })

export default router;
